# -*- coding: utf-8 -*-
"""
@Time    : 2021/10/13 18:20
@Author  : Leibuyun
@File    : 5.7 读写压缩文件.py
"""

import gzip
import bz2

with gzip.open('./somefile1.gz', 'r') as f:
    text1 = f.read()

with bz2.open('./somefile.bz2', 'r') as f:
    text2 = f.read()

